package com.guomao.demod;

public class MyRunImpl implements Runnable {

    @Override
    public void run() {

        for (int i = 0; i < 100; i++) {
            Thread t = Thread.currentThread();
            String name = t.getName();
            /*try {
                Thread.sleep(500);
            } catch (InterruptedException e) {
                throw new RuntimeException(e);
            }*/
//            Thread.yield();
            System.out.println(name + ":" + i);
        }

    }
}
